I'm trying to calcuated recursive values. Basically, response and response-to-response document contain sales values. I need to add up, at each level of the response document, the subtotal for the respective parent document the sales value and than calculate the commission. This code should be able to handle this for deep and wide construct of the parent-child relationship. Help!!